# -*- coding: utf-8 -*-
from collections import deque
queue = deque(["Eric", "John", "Michael"])
queue.append("Terry")
queue.append("Graham")
print queue

print queue.popleft()
print queue.popleft()
print queue
